package org.destinyshine.cricket.jaxbmodel;

import javax.xml.bind.annotation.XmlElement;
import java.util.List;

/**
 * Created by destinyliu on 2016/2/27.
 */
public class ServletElement {

    private String servletName;

    private String servletClass;

    private List<InitParam> initParams;

    private int loadOnStartup = -1;

    @XmlElement(name = "servlet-name")
    public String getServletName() {
        return servletName;
    }

    public void setServletName(String servletName) {
        this.servletName = servletName;
    }

    @XmlElement(name = "servlet-class")
    public String getServletClass() {
        return servletClass;
    }

    public void setServletClass(String servletClass) {
        this.servletClass = servletClass;
    }

    @XmlElement(name = "init-param", required = false)
    public List<InitParam> getInitParams() {
        return initParams;
    }

    public void setInitParams(List<InitParam> initParams) {
        this.initParams = initParams;
    }

    @XmlElement(name = "load-on-startup")
    public int getLoadOnStartup() {
        return loadOnStartup;
    }

    public void setLoadOnStartup(int loadOnStartup) {
        this.loadOnStartup = loadOnStartup;
    }
}
